home *** CD-ROM | disk | FTP | other *** search
- This archive contains the PC DOS 7 and OS/2 Warp versions of a simple
- personal reminder program. The JCCALJUL, JCDOM, JCDOW, JCEASTER,
- JCJULCAL, JCLEPYER and JCSORT programs are identical for OS/2 Warp and
- PC DOS 7. Only the file extension was changed from .CMD to .BAT. The
- HELLO program itself has one change and that is in the section that
- actually outputs the information. The OS/2 Warp version uses IBM's
- freeware VREXX extensions (look for a file called VREXX2.ZIP in all the
- popular BBS's and FTP sites) in order to pop up a message box with the
- information. The PC DOS 7 version uses PC DOS' included drawing
- functions to draw a blue box in a white field with the reminder
- information.
-
- HELLO.DAT is the flat file database for this program. Put it in the root
- directory of your C: drive. If you'd like to place this file someplace
- else, modify the HELLO program accordingly.
-
- JCCALJUL.* is an external REXX function that converts Gregorian date
- format (mm/dd/yy or mm/dd/yyyy) to Julian Date format (yyddd or
- yyyyddd). Julian date format is an easier format with which to perform
- date calculations.
-
- JCDOM.* is an external REXX function that calculates the exact calendar
- date of a relative day within a month (for example, the third Monday in
- October). Output is in extended Gregorian (mm/dd/yyyy) format.
-
- JCDOW.* is an external REXX function that calculate the relative day of
- the week. Input is a Julian date, output is a number from 1 - 7, with
- 1=Sunday, 7=Saturday.
-
- JCEASTER.* is an external REXX function that will calculate the Julian
- date (yyyyddd) for Easter in any given year. This is called by the
- HELLO.* program for calculating all of the Lenten holidays. EASTER.* in
- turn calls JCCALJUL.*. If no argument is passed, it'll determine the
- Julian date for Easter for the current year.
-
- HELLO.* is the main program. It will display an appropriate greeting on
- the screen, followed by reminders of upcoming red-letter dates. You can
- add or remove red letter dates by editing HELLO.DAT (see above).
-
- JCJULCAL.* Is the opposite of JCCALJUL.* It will convert a Julian Date
- (yyddd or yyyyddd) to Gregorian format (mm/dd/yy or mm/dd/yyyy).
-
- JCLEPYER.* is an external REXX function that determines whether or not
- a specified year is a Leap year. If no argument is passed, it'll make
- that determination for the current year. Upon return to the caller, it
- will pass a value of "1" if it is a leap year, "0" if not.
-
- JCSORT.* is an external REXX subroutine that will sort all items in the
- REXX stack. The first item to be read should contain the number of
- elements in the stack. Upon return to the caller, all items in the
- stack will be sorted in ascending sequence.
-
- To install these programs, copy the appropriate versions to a directory
- in your PATH. Put HELLO.DAT in the root directory of your C: drive.
- Under PC DOS 7, you may want to place a CALL to HELLO.BAT to give you
- your reminders at every boot. The same may be accomplished under OS/2
- Warp by placing a program object for HELLO.CMD in your StartUp folder.
- Again, please note that in order to use the OS/2 Warp version, you must
- first install the VREXX extensions (or you can try editing the source
- code to simply do a "Say" instruction for each line, but I like the
- pop-up box better).
-
- OS/2 Warp users can also get a daily reminder (if their machines are
- left on 24 hrs a day, as most OS/2 users are wont to do... why not?
- Unlike Windows/DOS, OS/2 doesn't require rebooting three or four times a
- day, and it's typical to leave an OS/2 machine running all day) by using
- the "Appointments" object in the IBM Works folder and scheduling a
- program launch every day at a specific time. See the IBM Works on-line
- documentation and help files for information on how to accomplish this.
-
- These programs are released to the public domain. You are free to
- distribute and modify them in any way you see fit. I make no claims or
- guarantees of any kind that they will work for you on your machine. I
- can only guarantee that they work for ME on MY machines. Your mileage
- may vary.
-
- If you like to contact the author (Jaime Cruz) you may do so at
- 72267.1372@compuserve.com, or jcruz@ibm.net. Enjoy!
-